package org.tis.tools.abf.module.sys.entity.vo;

import lombok.Data;
import org.tis.tools.abf.module.sys.entity.SysDictItem;
import org.tis.tools.abf.module.sys.entity.enums.DictFromType;
import org.tis.tools.abf.module.sys.entity.enums.DictType;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by chenchao
 * Created on 2018/9/4 11:12
 */
@Data
public class SysDictItemDetail {

    private String guid;
    private String guidDict;
    private String itemName;
    private String itemType;
    private String itemValue;
    private String sendValue;
    private BigDecimal seqno;
    private String itemDesc;
    private Date createtime;
    private Date lastupdate;
    private String updator;
    private String dataStatus;
    private DictType parentDictType = null;
    private DictFromType parentFromType = null;

    public SysDictItemDetail(){}

    public SysDictItemDetail(SysDictItem sysDictItem,DictType parentDictType,DictFromType parentFromType){
        this.guid = sysDictItem.getGuid();
        this.guidDict = sysDictItem.getGuidDict();
        this.itemName = sysDictItem.getItemName();
        this.itemType = sysDictItem.getItemType();
        this.itemValue = sysDictItem.getItemValue();
        this.sendValue = sysDictItem.getSendValue();
        this.seqno = sysDictItem.getSeqno();
        this.itemDesc = sysDictItem.getItemDesc();
        this.createtime = sysDictItem.getCreatetime();
        this.lastupdate = sysDictItem.getLastupdate();
        this.updator = sysDictItem.getUpdator();
        this.dataStatus = sysDictItem.getDataStatus();
        this.parentDictType = parentDictType;
        this.parentFromType = parentFromType;
    }
}
